package com.thesis.object;

/**
 * ServeTableDetail class
 * 
 * this class save detail of table in active and bill of this table of current user
 * @author NgocTuyen
 *
 */
public class ServeTableDetail {
	//variable of table and bill
	private Table table;
	private Bill bill;
	
	/**
	 * Constructor function
	 * 
	 * Constructor
	 * 
	 * @access public
	 * 
	 * @param table: table in active
	 * @param bill: bill of current table
	 * 
	 * @return void
	 */
	public ServeTableDetail(Table table, Bill bill){
		this.setTable(table);
		this.setBill(bill);
	}
	
	/**
	 * getBill function
	 * 
	 * get Bill of user
	 * 
	 * @access public
	 * 
	 * @param null
	 * 
	 * @return Bill: bill of table
	 */
	public Bill getBill() {
		return bill;
	}
	
	/**
	 * setBill function
	 * 
	 * set bill info of table
	 * 
	 * @access public
	 * 
	 * @param bill: info of bill
	 * 
	 * @return void
	 */
	public void setBill(Bill bill) {
		this.bill = bill;
	}
	
	/**
	 * getTable function
	 * 
	 * get detail of table
	 * 
	 * @access public
	 * 
	 * @param null
	 * 
	 * @return Table: detail of table
	 */
	public Table getTable() {
		return table;
	}
	
	/**
	 * setTable function
	 * 
	 * set detail of table
	 * 
	 * @access public
	 * 
	 * @param table: detail of table
	 * 
	 * @return void
	 */
	public void setTable(Table table) {
		this.table = table;
	}
}
